<?php
//目录设置  

//GI库相关目录
defined('PATH_CACHE') or define('PATH_CACHE',PATH_GI . 'Cache/' . NAME_APP . '/');
define('PATH_GI_COMMON',PATH_GI . 'Common/');
define('PATH_GI_CORE', PATH_GI . 'Core/');
define('PATH_GI_DB',   PATH_GI .'Db');
define('PATH_GI_HELPER', PATH_GI .'Helper/');
define('PATH_GI_TPL', PATH_GI .'Tpl/');
define('PATH_GI_EXCEPTION', PATH_GI .'Exception/');
define('PATH_GI_VENDOR',PATH_GI . 'Helper/Vendor/');

//用户程序相关目录
define('PATH_APP_COMMON',PATH_APP . 'Common/');
define('PATH_APP_CONFIG',PATH_APP . 'Config/');
define('PATH_APP_CONTROLLER',PATH_APP . 'Controller/');
define('PATH_APP_MODEL',PATH_APP . 'Model/');
define('PATH_APP_VIEW',PATH_APP . 'View/');
define('PATH_APP_UPLOAD',PATH_APP . 'Upload/');


if(!file_exists(PATH_CACHE)){
	mkdir(PATH_CACHE);
}

set_include_path( get_include_path() 
				. PATH_SEPARATOR . PATH_APP
				. PATH_SEPARATOR . PATH_GI
				. PATH_SEPARATOR . PATH_GI_HELPER
);